package com.linkhub.oms.common.enums.mp;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.linkhub.oms.common.constant.RoleConstant;
import com.linkhub.oms.common.enums.IEnumConvert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: RoleCodeEnum
 * @Author: echo
 * @Date: 2024/3/7 14:32
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum RoleCodeEnum implements IEnumConvert<String> {

    SUPER_ADMIN(RoleConstant.SUPER_ADMIN, "超管"),
    EMPLOYEE(RoleConstant.EMPLOYEE, "员工"),
    CUSTOMER(RoleConstant.CUSTOMER, "客户"),
    FINANCE(RoleConstant.FINANCE, "财务"),
    STORE_STAFF(RoleConstant.STORE_STAFF, "仓库人员"),
    ;

    @EnumValue
    private final String roleCode;
    private final String desc;

    @Override
    public String getCode() {
        return this.roleCode;
    }
}
